package logic.xmlLoader
{
	import common.manager.Resource;

	public class TextFormatXML
	{
		private var m_data : Object;
		
		public function TextFormatXML()
		{
		}
		
		public function prase() : void
		{
			m_data = [];
			
			var totalXML : XML = Resource.getXML("TextFormat");
			var sort : int = 0;
			
			for each(var item : XML in totalXML.elements())
			{
				var itemInfo : Object = new Object;
				
				itemInfo["name"] = item.@name.toString();
				itemInfo["sort"] = sort;
				
				m_data[itemInfo["name"]] = itemInfo;
				
				sort++;
			}
		}
		
		public function get data() : Object
		{
			return m_data;
		}
	}
}